linux, tpm: Fix argument to grant table operation
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 23 Feb 2007 16:24:07 +0000 (16:24 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 23 Feb 2007 16:24:07 +0000 (16:24 +0000)
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c

index cdbc7decd773f44c1a888735679ac7321d14d374..88ad1c1f8086b3e1b13baec6c90167dc6bb4f350 100644 (file)
@@ -641,7 +641,7 @@ static int tpm_xmit(struct tpm_private *tp,
                }
                gnttab_grant_foreign_access_ref( tx->ref,
                                                 tp->backend_id,
-                                                (tx->addr >> PAGE_SHIFT),
+                                                virt_to_mfn(txb->data),
                                                 0 /*RW*/);
                wmb();
        }